<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>DD</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <style>

    </style>
</head>

<body>
    <div id="app">
        <p>{{msg | msgFormat('疯狂+1','123') | test}}</p>
    </div>
    <script>
        //全局的过滤器,进行时间的格式化
        Vue.filter('dataFormat', function(dateStr){
            
        })
        var vm = new Vue({
            el: '#app',
            data: {
                msg: '曾经,我也是一个单纯的少年,单纯的我,傻傻的问,谁是世界上最单纯的男人'
            },
            methods: {

            }
        })
    </script>

</body>

</html>
<!-- 过滤器调用时候的格式 {{name | nameope}} -->